package com.lc.pda.dao;

import com.lc.pda.entity.WmsInventory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 库存信息 Mapper 接口
 * </p>
 *
 * @author zww
 * @since 2023-07-06
 */
public interface WmsInventoryMapper extends BaseMapper<WmsInventory> {

    @Insert("INSERT INTO wms_inventory_his SELECT * FROM wms_inventory WHERE inventoryId = #{inventoryId}")
    int insetToHis(@Param("inventoryId") String inventoryId);
}
